const mongoose = require('../db')
const Schema = mongoose.Schema

const schema = new Schema({
  cartid: { type: String, required: true },
  userid: { type: String, required: true },
  proid: { type: String, required: true },
  num: { type: Number, required: true },
  flag: { type: Boolean, required: true }
})

module.exports = mongoose.model('Cart', schema)